﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPrinting
{
    public interface IPhotoPrint
    {
        /// <summary>
        /// 接口名称
        /// </summary>
        string Name { get; }

        /// <summary>
        /// 接口识别ID
        /// </summary>
        int ID { get; set; }

        /// <summary>
        /// 是否已经完成初始化
        /// </summary>
        bool Inited { get; }

        /// <summary>
        /// 是否已经关闭
        /// </summary>
        bool Exited { get; }

        /// <summary>
        /// 打印动作超时时间
        /// </summary>
        int TimeoutMillisecond { get; set; }

        /// <summary>
        /// 最新的错误信息
        /// </summary>
        string ErrorMessage { get; }

        bool Init(string param, out string outParam);

        void Exit();

        bool Print(string param, out string outParam);

        bool Clear(string param, out string outParam);

        void ShowConfigDialog(string inParam);
    }
}
